// TWDatePicker.h 
// Camera 
// 
// Created by 尚朋 on 2018/10/18. 
// Copyright © 2018年 wzh. All rights reserved. 
// 
// @class  TWDatePicker
// abstract  <#摘要#>
// description  为适应业务需要 方便调用 该控件最小时间单位为天 如需更改精度 请根据业务继续编写 或者更改其中关键代码 即可实现

typedef NS_ENUM(NSInteger,TWDatePickerMode) {
    
    TWDatePickerModeYearAndMonth = 0,
    TWDatePickerModeYearMonthDay,
    
};
#import <UIKit/UIKit.h>
#import "DateModel.h"

@class TWDatePicker;
@protocol TWDatePickerDelegate <NSObject>

- (void)datePicker:(TWDatePicker *)picker scrollDidEnd:(NSDate *)date;

@end

@interface TWDatePicker : UIView

@property (nonatomic,assign)TWDatePickerMode pickerMode;

@property(nonatomic,strong) NSDate * date;

@property(nonatomic,strong) NSDate * maxDate;//最大时间

@property(nonatomic,strong) NSDate * minDate;//最小时间

@property(nonatomic,strong) NSDate * selectDate;

@property (nonatomic, copy)void (^datePickerBlock)(NSDate *date) ;


@property(weak) id<TWDatePickerDelegate>delegate;

@end
